home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Tcl_RegExpMatch(3) Tcl Library Procedures 7.0
-
-
-
- _________________________________________________________________
-
- NAME
- Tcl_RegExpMatch - Test whether a string matches a regular
- expression
-
- SYNOPSIS
- #include <tcl.h>
-
- int
- Tcl_RegExpMatch(_i_n_t_e_r_p, _s_t_r_i_n_g, _r_e_g_e_x_p)
-
- ARGUMENTS
- Tcl_Interp *_i_n_t_e_r_p (in) Tcl interpreter to use for
- error reporting.
-
- char *_s_t_r_i_n_g (in) String to test.
-
- char *_r_e_g_e_x_p (in) Regular expression to match
- against _s_t_r_i_n_g.
- _________________________________________________________________
-
-
- DESCRIPTION
- Tcl_RegExpMatch determines whether its _s_t_r_i_n_g argument
- matches _r_e_g_e_x_p, where _r_e_g_e_x_p is interpreted as a regular
- expression using the same rules as for the regexp Tcl com-
- mand. If there is a match then Tcl_RegExpMatch returns 1.
- If there is no match then Tcl_RegExpMatch returns 0. If an
- error occurs in the matching process (e.g. _r_e_g_e_x_p is not a
- valid regular expression) then Tcl_RegExpMatch returns -1
- and leaves an error message in _i_n_t_e_r_p->_r_e_s_u_l_t.
-
-
- KEYWORDS
- match, regular expression, string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tcl 1
-
-
-
-